<h2 class="contentTitle">修改</h2>

<div class="pageContent">
    <form method="post" action="<?php echo '<?php echo __URL__.\'/update\';?>';?>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
        <input type="hidden" name="<?php echo '<?php echo $_REQUEST[\'PK\']; ?>'; ?>" value="<?php echo '<?php echo $DATA[$_REQUEST[\'PK\']] ?>'; ?>"/>
        <div class="pageFormContent" layoutH="98">
            <?php foreach ($field_data as $field): ?>
                <div class="unit">
                    <label><?php echo $field['comment']?$field['comment']:$field['name']; ?>：</label>
                    <input type="text" name="DATA[<?php echo $field['name']; ?>]" maxlength="<?php echo $field['max_length']; ?>"  class="" value="<?php echo '<?php echo $DATA["'.$field['name'].'"]; ?>'; ?>"/>
                    <span class="info"><?php echo $field['comment']?$field['comment']:$field['name']; ?></span>
                </div>

            <?php endforeach; ?>

            <!--<div class="unit">
                <label>状态：</label>
                <select name="DATA[status]">
                    <option value="1">启用</option>
                    <option value="0">禁用</option>
                </select>
                <span class="info">*</span>
            </div>-->


            <!--<div class="unit">
                <label>其他信息：</label>
                <textarea rows="2" cols="80" name="DATA[extra]" class="textInput"><?php /*echo '<?php echo $DATA[\'extra\'] ?>';*/?></textarea>
                <span class="info">描述</span>
            </div>-->

            <div class="divider"></div>

        </div>

        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">提交</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>